package com.linkage.event.service.impl;

import com.linkage.event.pojo.dao.EventMessageMapper;
import com.linkage.event.pojo.entity.EventMessage;
import com.linkage.event.service.EventBossOperationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 伊嘉宁
 * @date 2020/7/8 9:34
 * @info：
 * @modified：
 */
@Service
public class EventBossOperationServiceImpl implements EventBossOperationService {

    @Autowired
    private EventMessageMapper eventMessageMapper;

    @Override
    public Integer deleteEventMessage(String id) throws Exception {
        return this.eventMessageMapper.deleteByPrimaryKey(id);
    }

    @Override
    public Integer updateEventMessage(EventMessage eventMessage) throws Exception {
        return this.eventMessageMapper.updateByPrimaryKeySelective(eventMessage);
    }
}
